package com.amigo;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.Button;

public class Help extends Activity implements OnClickListener {
	Button Support, Safety, Privacy, Terms;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.activity_help);
		
		Support = (Button) findViewById(R.id.help);
		Safety = (Button) findViewById(R.id.safety);
		Privacy = (Button) findViewById(R.id.privacy);
		Terms = (Button) findViewById(R.id.terms);

		Support.setOnClickListener(this);
		Safety.setOnClickListener(this);
		Privacy.setOnClickListener(this);
		Terms.setOnClickListener(this);

	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.help:
			startActivity(new Intent(Help.this, Support.class));
			finish();

			break;
		case R.id.safety:
			startActivity(new Intent(Help.this, Safety.class));
			finish();

			break;
		case R.id.privacy:
			startActivity(new Intent(Help.this, Privacy.class));
			finish();
			break;
		case R.id.terms:
			startActivity(new Intent(Help.this, Terms.class));
			finish();
			break;

		}

	}
	
	public void prev(View v )
	{
		startActivity(new Intent(this , Dashboard.class));
		overridePendingTransition(android.R.anim.slide_in_left , android.R.anim.slide_out_right);
		finish();
	}
	@Override
	public void onBackPressed() {
	
	}
}